f = open("yesterday",'a+',encoding="utf-8")

f.write("我爱北京天安门，\n")
f.write("天安门上太阳升\n")

f.close()

f = open("yesterday","r",encoding = "utf-8")

data = f.read()
print(data)
f.close()